#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "openglctx.h"
#include "ui_mainwindow.h"
#include "tcpdatareader.h"

class MainWindow : public QMainWindow, public Ui::MainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    OpenGLctx *widgetGL;

    QAction *actionOpen;
    QAction *actionNew;
    QAction *actionNotify;

    TcpDataReader *tcpReader;

private slots:
    void openFile();
    void notifyDialog();
    void on_connectedToServer(bool);
    void connectToServer();
    void processTcpData();
};

#endif // MAINWINDOW_H
